package com.boho.base.action;


             
/**
 * @File name:  QueryTSystemStatusAction.java 
 * @Create on:  2010-05-11 19:19:218
 * @Author   :  陈伟
 *
 * @ChangeList
 * ---------------------------------------------------
 * Date         Editor              ChangeReasons
 *
 */
           
        

            
import java.sql.Connection;
import java.util.List;

import cn.boho.framework.actions.ActionImp;
import cn.boho.framework.context.ActionContext;
import cn.boho.framework.service.MessageService;

import com.boho.base.cache.TSystemStatusCache;



public class QueryTSystemStatusAction extends ActionImp {
	private Connection con=null;
	private String typePid;
	@Override
	protected void doException(ActionContext atx, Exception ex) {
		atx.setErrorContext("BOHO_COMMON_1004", MessageService.getMessage("BOHO_COMMON_1004"),"【数据字典表】" ,ex);
	}
	@SuppressWarnings("unchecked")
	@Override
	protected int performExecute(ActionContext atx) throws Exception {
		List list=TSystemStatusCache.queryTSystemStatus(con,typePid);
		atx.setValue("T_DATA_DICT", list.toArray());
		return 1;
	}
	@Override
	protected int verifyParameters(ActionContext atx) throws Exception {
		con = atx.getConection();
		typePid = atx.getStringValue("TYPE_PID", "");
		return 1;
	}
}
